## 链接数据库
db = {
    'host': '127.0.0.1', 
    'port': 3306,
    'user': 'root', 
    'password': 'huaren54321', 
    'database': 'lishi',
    'charset': 'utf8mb4',
    'max_connections': 32,
    'stale_timeout': 300
}
## 登录加密配置
secret = {
    'key': "09d25e094faa6ca2556c818166b7a9563b93f7099f6f0f4caa6cf63b88e8d3e7",
    'method': "HS256",
    'expire': 10080
}

redis = {
    'host': '127.0.0.1',
    'port': 6379,
    'password': 'huaren54321'
}

resps = {
    401: {'code': 401, "msg": "Not Auth"},
    402: {'code': 402, "msg": "Operation forbidden"},
    403: {'code': 403, "msg": "Operation forbidden"},
    404: {'code': 404, "msg": "Not found"}
}

notNeedLogins = {
    'home', 'item', 'me', 'cate'
}

models = {'Item': '商品', 'User': '用户', 'Shop': '店铺', 'Order': '订单'}